//
//  UIViewController+XMCommon.h
//  XunMi
//
//  Created by MacBook on 2024/2/18.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIViewController (XMCommon) <UINavigationControllerDelegate>

/// 获取当前页面的控制器
+ (UIViewController *)currentViewController;

/// 获得顶级VC
+ (UIViewController *)rootViewController;

/// 找到当前导航控制器
+ (UINavigationController *)currentNavigatonController;

/// 是否是通过push进来的
- (BOOL)isFromPush;

@end

NS_ASSUME_NONNULL_END
